package com.framework.web.bus.repository;

import com.framework.web.bus.domain.UserAddress;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


/**
* @Title: Repository
* @Description: repository
* @author zqtao
* @date 2016-09-11
* @version V1.0
*
*/
public interface UserAddressRepository extends JpaRepository<UserAddress, String>,
JpaSpecificationExecutor<UserAddress> {

/**
 * 根据用户ID和状态获取收货地址信息
 * @param userId
 * @return
 */
public List<UserAddress> findByUserIdAndStatus(String userId,Integer status);
}